<template>
  <div class="app-container">
    <el-tabs v-model="activeTab" type="border-card" @tab-click="handleClick">
      <el-tab-pane label="导航设置" name="navSetting"></el-tab-pane>
      <transition name="fade" mode="out-in">
        <keep-alive>
          <component :is="activeTab" @goList="goListFn"></component>
        </keep-alive>
      </transition>
    </el-tabs>
  </div>
</template>

<script>
import navSetting from './nav'

export default {
  name: 'Setting',
  computed: {
  },
  components: {
    navSetting
  },
  data() {
    return {
      activeTab: 'navSetting'
    }
  },
  watch: {
  },
  created() {
  },
  activated() {
  },
  deactivated() {
  },
  methods: {
    handleClick(tab, event) {
      // const index = Number(tab.index)
    },
    goListFn(type) {
      console.log(type)
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
</style>
